package com.woody.aggregate.saas.api;


import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.woody.aggregate.IdDTO;
import com.woody.aggregate.saas.dto.*;
import com.woody.aggregate.saas.vo.PageQuerySaasIndustryVO;
import com.woody.aggregate.saas.vo.SaasShopIndustryVO;
import com.woody.base.model.Response;
import io.swagger.annotations.ApiOperation;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.validation.Valid;
import java.util.List;
import java.util.Map;

public interface SaasShopIndustryApi {

    @PostMapping("/saasShopIndustry/add")
    @ResponseBody
    @ApiOperation(value = "新增")
    Response<Map<String, Object>> add(@RequestBody @Valid AddSaasShopIndustryDTO addSaasShopIndustryDTO);

    @PostMapping("/saasShopIndustry/edit")
    @ResponseBody
    @ApiOperation(value = "编辑")
    Response<Map<String, Object>> edit(@RequestBody @Valid UpdateSaasShopIndustryDTO updateSaasShopIndustryDTO);

    @PostMapping("/saasShopIndustry/pageQuery")
    @ResponseBody
    @ApiOperation(value = "分页查询")
    Response<Page<PageQuerySaasIndustryVO>> pageQuery(@RequestBody PageQuerySaasIndustryDTO pageQueryIndustryDTO);

    @PostMapping("/saasShopIndustry/getById")
    @ResponseBody
    @ApiOperation(value = "根据id查询平台行业")
    Response<SaasShopIndustryVO> getById(@RequestBody @Validated IdDTO idDTO);

    @PostMapping("/saasShopIndustry/delete")
    @ResponseBody
    @ApiOperation(value = "根据id删除平台行业")
    Response<Long> delete(@RequestBody @Validated IdDTO idDTO);

    @PostMapping("/saasShopIndustry/firstLevelIndustryList")
    @ResponseBody
    @ApiOperation(value = "一级行业列表")
    Response<List<SaasShopIndustryVO>> firstLevelIndustryList(@RequestBody QueryFirstLevelIndustryDTO queryFirstLevelIndustryDTO);

    @PostMapping("/saasShopIndustry/likeRightByCode")
    @ResponseBody
    @ApiOperation(value = "根据行业编码右模糊查询行业")
    Response<List<SaasShopIndustryVO>> likeRightByCode(@RequestBody @Validated CodeQueryDTO codeQueryDTO);
}





